package com.city.semis.business.impl;

import com.alibaba.fastjson.JSONObject;
import com.city.semis.business.IAdminBusiness;
import com.city.semis.dao.AdminValueDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminBusinessImpl implements IAdminBusiness {
    @Resource
    AdminValueDao avd;

    @Override
    public JSONObject getListByAll() {
        JSONObject jsonObj = new JSONObject();
        jsonObj.put("code", 0);
        jsonObj.put("msg", "成功");
        jsonObj.put("data", avd.getListByAll());
        return jsonObj;
    }

    @Override
    public JSONObject getListByID(String aid) {
        JSONObject jsonObj = new JSONObject();
        jsonObj.put("code", 0);
        jsonObj.put("msg", "成功");
        jsonObj.put("data", avd.getListByID(aid));
        return jsonObj;
    }
}
